import { createPinia } from 'pinia'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
import type { App } from 'vue'

const pinia = createPinia()
pinia.use(piniaPluginPersistedstate)

export { useAppStore } from './modules/app'
export { useUserStore } from './modules/user'
export function setupPinia(app: App) {
    app.use(pinia)
}
export default pinia
